'use strict';
const MANIFEST = 'flutter-app-manifest';
const TEMP = 'flutter-temp-cache';
const CACHE_NAME = 'flutter-app-cache';

const RESOURCES = {"assets/AssetManifest.bin": "1310a4517e092fa5b0d8373303bd02e5",
"assets/AssetManifest.bin.json": "034933845e19e627973964114735d43c",
"assets/AssetManifest.json": "a71b2fe08ce9281e68840d2f3e94cc4a",
"assets/FontManifest.json": "dc3d03800ccca4601324923c0b1d6d57",
"assets/fonts/MaterialIcons-Regular.otf": "abe96835effb0c8aad6646cd1b4fd574",
"assets/images/01ud.jpg": "7136192066b50b0c630f1413b99ddef1",
"assets/images/03.jpg": "94f561c4630a8658a2aeb823a8c188fa",
"assets/images/04.jpg": "270f8a02003c1284f1f5cf2150863679",
"assets/images/06.jpg": "6e2c4662c83ba8b96fc61d746e7ba7fd",
"assets/images/14151703823147_.pic.jpg": "10b021144eaf9676f094520b5999f901",
"assets/images/14181703823150_.pic.jpg": "309041303d82b763ee6519cb1de598f9",
"assets/images/14191703823151_.pic.jpg": "ab67653ff14c650015a501a8704689ab",
"assets/images/14201703823151_.pic.jpg": "8570bc8ce15e852dc42f391b997c5254",
"assets/images/banner_02.jpg": "783e6c2f4b2cbf6a8dbc0893aeaaf133",
"assets/images/pic30_02.jpg": "4df9005379e5062b73dab1fb3baf835a",
"assets/images/pict_05.jpg": "a12f187637e5f9f622102668a16e142e",
"assets/images/pict_07.jpg": "4cdfbe986dc0aa3bc3e536dcd9120480",
"assets/images/pict_12.jpg": "d7576a9e8dba53e8069f42d95c161e54",
"assets/images/pict_14.jpg": "8715de107d7652705bd18e5500bc1906",
"assets/images/pict_16.jpg": "6d77b810454dc9de0d98b09d2e7435b0",
"assets/images/pict_18.jpg": "d4c13e5735e5ddfec5b37f7aa0cdf3fc",
"assets/images/pict_27.jpg": "19af0621f101e1cc834f1684d73d7f82",
"assets/images/pict_30.jpg": "68d914d54e670d676c2aa76f7ca35e52",
"assets/images/pict_32.jpg": "6c83583f424f8c98b8cf59a995fc3191",
"assets/images/pict_34.jpg": "bb4b4d10256066fdb3a6f58a22bffed8",
"assets/images/pict_41.jpg": "0d691b99205b2b7c86c9da76282a8bb8",
"assets/images/pict_43.jpg": "f1c566ba688e263ae574c676da843422",
"assets/images/pict_45.jpg": "74c13fe9da713c5f5fd4e53216aea11e",
"assets/images/pict_47.jpg": "4c86c6473ccb7e6f9f914f5cbdd55ee3",
"assets/images/pict_54.jpg": "736c12356e8cda651f6dadfed0a48243",
"assets/images/pict_56.jpg": "14181f24b529968dc4752ac2e6028c20",
"assets/images/pict_58.jpg": "f12abf8985958a44aea895c0af8fce98",
"assets/images/pict_60.jpg": "99cf09b6a5dc2f78c8983e400ba27a48",
"assets/images/pict_66.jpg": "3461b2e703e54e056a7ce29c4b01967d",
"assets/images/pict_68.jpg": "a40dd05f1a1aff6e860cdd6a9d6dfcc6",
"assets/images/pict_70.jpg": "0f6081c297680118c4f0746c9e422ca2",
"assets/images/pict_72.jpg": "d65c53eaab7df89d4097ce8fa7c352b9",
"assets/images/pict_74.jpg": "64fb9fdc8b36a82d2962c1f81882fda0",
"assets/images/pic_03.jpg": "b1b3b33fc44479108c40738f3ae5f69f",
"assets/images/pic_05.jpg": "c4b4ae8136c1b9b463dbf6ac096d3771",
"assets/images/pic_07.jpg": "7994e041bc1277f9401b445b51d39f96",
"assets/images/sou_03.jpg": "96946206bb535e6294ce8eb5686a14cb",
"assets/NOTICES": "912b3caef5749850dfed187ba87c482b",
"assets/packages/cupertino_icons/assets/CupertinoIcons.ttf": "89ed8f4e49bcdfc0b5bfc9b24591e347",
"assets/shaders/ink_sparkle.frag": "4096b5150bac93c41cbc9b45276bd90f",
"canvaskit/canvaskit.js": "eb8797020acdbdf96a12fb0405582c1b",
"canvaskit/canvaskit.wasm": "73584c1a3367e3eaf757647a8f5c5989",
"canvaskit/chromium/canvaskit.js": "0ae8bbcc58155679458a0f7a00f66873",
"canvaskit/chromium/canvaskit.wasm": "143af6ff368f9cd21c863bfa4274c406",
"canvaskit/skwasm.js": "87063acf45c5e1ab9565dcf06b0c18b8",
"canvaskit/skwasm.wasm": "2fc47c0a0c3c7af8542b601634fe9674",
"canvaskit/skwasm.worker.js": "bfb704a6c714a75da9ef320991e88b03",
"favicon.png": "bd9948e266eba07c5d76f3153984e10b",
"flutter.js": "59a12ab9d00ae8f8096fffc417b6e84f",
"index.html": "9f8e1235f7a9676c5e60bf90acdeee44",
"/": "9f8e1235f7a9676c5e60bf90acdeee44",
"main.dart.js": "2bee0db9a577f8f15ebb23c9e3f15beb",
"manifest.json": "8ca6a1f8a72afc4800455a54463f541d",
"version.json": "036086035920b0f16ca82c3ad6631d97"};
// The application shell files that are downloaded before a service worker can
// start.
const CORE = ["main.dart.js",
"index.html",
"assets/AssetManifest.json",
"assets/FontManifest.json"];

// During install, the TEMP cache is populated with the application shell files.
self.addEventListener("install", (event) => {
  self.skipWaiting();
  return event.waitUntil(
    caches.open(TEMP).then((cache) => {
      return cache.addAll(
        CORE.map((value) => new Request(value, {'cache': 'reload'})));
    })
  );
});
// During activate, the cache is populated with the temp files downloaded in
// install. If this service worker is upgrading from one with a saved
// MANIFEST, then use this to retain unchanged resource files.
self.addEventListener("activate", function(event) {
  return event.waitUntil(async function() {
    try {
      var contentCache = await caches.open(CACHE_NAME);
      var tempCache = await caches.open(TEMP);
      var manifestCache = await caches.open(MANIFEST);
      var manifest = await manifestCache.match('manifest');
      // When there is no prior manifest, clear the entire cache.
      if (!manifest) {
        await caches.delete(CACHE_NAME);
        contentCache = await caches.open(CACHE_NAME);
        for (var request of await tempCache.keys()) {
          var response = await tempCache.match(request);
          await contentCache.put(request, response);
        }
        await caches.delete(TEMP);
        // Save the manifest to make future upgrades efficient.
        await manifestCache.put('manifest', new Response(JSON.stringify(RESOURCES)));
        // Claim client to enable caching on first launch
        self.clients.claim();
        return;
      }
      var oldManifest = await manifest.json();
      var origin = self.location.origin;
      for (var request of await contentCache.keys()) {
        var key = request.url.substring(origin.length + 1);
        if (key == "") {
          key = "/";
        }
        // If a resource from the old manifest is not in the new cache, or if
        // the MD5 sum has changed, delete it. Otherwise the resource is left
        // in the cache and can be reused by the new service worker.
        if (!RESOURCES[key] || RESOURCES[key] != oldManifest[key]) {
          await contentCache.delete(request);
        }
      }
      // Populate the cache with the app shell TEMP files, potentially overwriting
      // cache files preserved above.
      for (var request of await tempCache.keys()) {
        var response = await tempCache.match(request);
        await contentCache.put(request, response);
      }
      await caches.delete(TEMP);
      // Save the manifest to make future upgrades efficient.
      await manifestCache.put('manifest', new Response(JSON.stringify(RESOURCES)));
      // Claim client to enable caching on first launch
      self.clients.claim();
      return;
    } catch (err) {
      // On an unhandled exception the state of the cache cannot be guaranteed.
      console.error('Failed to upgrade service worker: ' + err);
      await caches.delete(CACHE_NAME);
      await caches.delete(TEMP);
      await caches.delete(MANIFEST);
    }
  }());
});
// The fetch handler redirects requests for RESOURCE files to the service
// worker cache.
self.addEventListener("fetch", (event) => {
  if (event.request.method !== 'GET') {
    return;
  }
  var origin = self.location.origin;
  var key = event.request.url.substring(origin.length + 1);
  // Redirect URLs to the index.html
  if (key.indexOf('?v=') != -1) {
    key = key.split('?v=')[0];
  }
  if (event.request.url == origin || event.request.url.startsWith(origin + '/#') || key == '') {
    key = '/';
  }
  // If the URL is not the RESOURCE list then return to signal that the
  // browser should take over.
  if (!RESOURCES[key]) {
    return;
  }
  // If the URL is the index.html, perform an online-first request.
  if (key == '/') {
    return onlineFirst(event);
  }
  event.respondWith(caches.open(CACHE_NAME)
    .then((cache) =>  {
      return cache.match(event.request).then((response) => {
        // Either respond with the cached resource, or perform a fetch and
        // lazily populate the cache only if the resource was successfully fetched.
        return response || fetch(event.request).then((response) => {
          if (response && Boolean(response.ok)) {
            cache.put(event.request, response.clone());
          }
          return response;
        });
      })
    })
  );
});
self.addEventListener('message', (event) => {
  // SkipWaiting can be used to immediately activate a waiting service worker.
  // This will also require a page refresh triggered by the main worker.
  if (event.data === 'skipWaiting') {
    self.skipWaiting();
    return;
  }
  if (event.data === 'downloadOffline') {
    downloadOffline();
    return;
  }
});
// Download offline will check the RESOURCES for all files not in the cache
// and populate them.
async function downloadOffline() {
  var resources = [];
  var contentCache = await caches.open(CACHE_NAME);
  var currentContent = {};
  for (var request of await contentCache.keys()) {
    var key = request.url.substring(origin.length + 1);
    if (key == "") {
      key = "/";
    }
    currentContent[key] = true;
  }
  for (var resourceKey of Object.keys(RESOURCES)) {
    if (!currentContent[resourceKey]) {
      resources.push(resourceKey);
    }
  }
  return contentCache.addAll(resources);
}
// Attempt to download the resource online before falling back to
// the offline cache.
function onlineFirst(event) {
  return event.respondWith(
    fetch(event.request).then((response) => {
      return caches.open(CACHE_NAME).then((cache) => {
        cache.put(event.request, response.clone());
        return response;
      });
    }).catch((error) => {
      return caches.open(CACHE_NAME).then((cache) => {
        return cache.match(event.request).then((response) => {
          if (response != null) {
            return response;
          }
          throw error;
        });
      });
    })
  );
}
